<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix='fmt' uri="http://java.sun.com/jsp/jstl/fmt" %>
<style>
#sysresourcesList_content .page_content_title{
	border-bottom: 1px solid #ffffff;
    background: #2b2e37;
    color: #fff;
}
#sysresourcesList_content .page_content_title span{
	border-left: 1px solid #393d49;
	display: inline-block;
	padding-left: 10px;
	line-height: 36px;
}
.layui-nav-tree .layui-nav-child a{
	color:#fff;
}
</style>
<!-- 操作按钮 -->
<div id="sysresourcesList_content" style="padding: 10px;"  class="layui-form">
	<div style="padding-bottom: 5px;">
		<a id="topAllChoose" class="layui-btn layui-btn-small" style="color:#fff;">
			<input type="checkbox" lay-skin="primary" title="全选" lay-filter="topAllChoose">
		</a>
	</div>
	<div class="page_content_title" >
		<span style="width:180px">序号--资源名称</span>
		<span>资源描述</span>
	</div>
	<ul id="sysresourcesList" class="layui-nav layui-nav-tree" lay-filter="sysresourcesList" style="width:100%;">
		<c:forEach var="t" items="${sysList}" varStatus="status">
			<li class="layui-nav-item layui-nav-itemed">
			    <a href="javascript:;" style="padding-left: 35px;">
			    	<span title="资源名称：${t.name}" class="text-overflow" style="width:160px;">${t.ordernum}--<i class="layui-icon" >${t.icon}</i>&nbsp${t.name}</span>
			    	<span title="资源描述：${t.description}" class="text-overflow" style="width:520px;position: absolute ;top:0px;left:200px;">${t.description}</span>
			    </a>
			    <div style="position: absolute ;top:0px;left:10px;">
			    	<input class="parentId${t.parentid} id${t.id}" parentId="${t.parentid}" type="checkbox" name="idCheckbox" value="${t.id}" lay-skin="primary"  lay-filter="resChoose"
			    		<c:forEach var="urt" items="${userreslist}" varStatus="status">
			    			<c:if test="${urt.id==t.id}">
			    				checked="checked"
			    			</c:if>
			    		</c:forEach>
			    		>
			    </div>
			    <c:if test="${t.nodes!=null}">
				    <dl class="layui-nav-child">
				    	<c:forEach var="t1" items="${t.nodes}" varStatus="status">
					      <dd>
					      	<a href="javascript:;" style="padding-left: 55px;">
						      	<span title="资源名称：${t1.name}" class="text-overflow" style="width:140px;">${t1.ordernum}--<i class="layui-icon" >${t1.icon}</i>&nbsp${t1.name}</span>
			    				<span title="资源描述：${t1.description}" class="text-overflow" style="width:520px;position: absolute ;top:0px;left:200px;">${t1.description}</span>
					      	</a>
					      	<div style="position: absolute ;top:0px;left:30px;">
						    	<input class="parentId${t1.parentid} id${t1.id}" parentId="${t1.parentid}" type="checkbox" name="idCheckbox" value="${t1.id}" lay-skin="primary"  lay-filter="resChoose"
						    		<c:forEach var="urt" items="${userreslist}" varStatus="status">
						    			<c:if test="${urt.id==t1.id}">
						    				checked="checked"
						    			</c:if>
						    		</c:forEach>
						    		>
						    </div>
					      </dd>
				    	</c:forEach>
				    </dl>
			    </c:if>
			</li>
		</c:forEach>
	</ul>
	<script type="text/javascript">
	var selectUserid = '${userid}';
	</script>
	<script src="${pageContext.request.contextPath}/static/js/back/sysuser/sysuserResourcesUpdatePage.js"></script>
</div>
    